#ifndef SHOWPICLABEL_H
#define SHOWPICLABEL_H

#include <QObject>
#include <QLabel>
#include <QWidget>
#include <QImage>
#include <QPixmap>

class showPicLabel : public QLabel
{
    Q_OBJECT
public:
    explicit showPicLabel(QWidget *parent = nullptr);
    int showPic(QImage img);

protected:
    void paintEvent(QPaintEvent *);


signals:

public slots:

private:
    QPixmap pix;
    QPixmap moban_pix;
    QPixmap moban_pix2;
    QPixmap moban_pix3;
    int showPicW;
    int showPicH;
    int startPicX;
    int startPicY;
};

#endif // SHOWPICLABEL_H
